package com.suzj.extraenchantments.enchant.Ench_03;

import com.suzj.extraenchantments.Config;

import net.minecraft.world.entity.EquipmentSlot;
import net.minecraft.world.item.enchantment.Enchantment;
import net.minecraft.world.item.enchantment.EnchantmentCategory;


public class EnchantmentFirecracker extends Enchantment {
    public EnchantmentFirecracker() {
        super(Enchantment.Rarity.RARE, EnchantmentCategory.CROSSBOW,  new EquipmentSlot[]{EquipmentSlot.MAINHAND});
    }

    public int getMaxLevel() {
        if (Config.SERVER.isFirecracker.get().booleanValue()) {
            return 1;
        }
        return 0;
    }
}